package com.atguigu.tingshu.payment.service;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wechat.pay.java.service.payments.model.Transaction;

public interface PaymentInfoService extends IService<PaymentInfo> {
    //保存支付记录
    public abstract void savePaymentInfo(OrderInfo orderInfo) ;

    public abstract void savePaymentInfo(RechargeInfo rechargeInfo) ;

    //更新支付状态
    void updatePaymentStatus(Transaction transaction);
}
